import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { Base } from '../base.entity';

@Entity()
export class UserRole extends Base {

  //角色名
  @Column({ length: 30, comment: '角色名' })
  role_name: string;

  //描述
  @Column({ length: 300, comment: '描述' })
  role_describe: string;

  //创建人user_id
  @Column({ comment: '创建人user_id', nullable: true })
  user_id: number;

  //所属商户
  @Column({ comment: '所属商户ID', default: 0 })
  business_id: number

}